package org.springblade.task.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springblade.task.base.entity.BaseUserReadingDataLog;
import org.springblade.task.base.param.BaseUserReadingDataLogParam;
import org.springblade.task.base.vo.BaseUserReadingDataLogVO;

import java.util.List;

public interface BaseUserReadingDataLogMapper  extends BaseMapper<BaseUserReadingDataLog> {

	/**
	 * 查询用户阅读、播放时长
	 * @param param
	 * @return
	 */
	public List<BaseUserReadingDataLogVO> queryUserReadingDataCount(BaseUserReadingDataLogParam param);

	/**
	 * 查询渠道书籍阅读时长
	 */
	public List<BaseUserReadingDataLogVO> queryChannelReadBookLengthData(BaseUserReadingDataLogParam param);


	/**
	 * 查询今日读书用户数据
	 * @param param
	 * @return
	 */
	public List<BaseUserReadingDataLogVO> queryTodayReadBookList(BaseUserReadingDataLogParam param);
}
